package com.yc.chatroom.common.dto;

import java.io.Serializable;

import com.yc.chatroom.common.Constant;

/**
 * http接口返回值对象
 */
public class ResultDto extends BaseDto implements Serializable {
    private Integer code = Constant.RESULT_CODE_SUCCESS;
    private String msg;
    private Object data;

    public ResultDto() {
    }
    
    public ResultDto(String msg) {
		super();
		this.msg = msg;
	}

	public ResultDto(Integer code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
